package com.wechatapp.mengyao.poetry.service;

import com.wechatapp.mengyao.poetry.core.PageResult;
import com.wechatapp.mengyao.poetry.vo.ChinesePoetryPageView;
import com.wechatapp.mengyao.poetry.entity.Favorite;
import com.wechatapp.mengyao.poetry.entity.PoetryType;

import java.util.List;
import java.util.Map;

/**
 * @author yanghuaxu
 * @date 2025/5/21 11:02
 */
public interface FavoriteService {

    void addFavorite(Integer poetryId);

    void cancelFavorite(Integer poetryId);

    Favorite getCurrentUserFavoritePoetry(Integer poetryId);

    PageResult<ChinesePoetryPageView> getFavoriteList(Map<String, String> map);

    List<PoetryType> getCurrentUserFavoriteTypeList();
}
